how to have multiple arguments to multiple variables for a function